package cn.niit.pm.entity;



import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.time.Month;
import java.util.Date;

/**
 * 薪资实体类
 * @author xiaomi
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("Salary")
@ApiModel("薪资实体类")
public class Salary {
    private Integer salaryId;
    private Integer employeeId;  //员工编号
    private Date payDate;  //发放日期
    private Month salaryMonth;  //发放工资所属月份
    private String bankAccount;  //银行账户
    private Double tax;  //个人应交税
    private Double baseSalary;  //基本工资
    @ApiModelProperty("奖金")
    private Double reward;  //奖金
    @ApiModelProperty("罚金")
    private Double forfeit;  //罚金
    private Double insuranceFund;  //五险一金
    private Double totalSalary;  //最终薪资

    //扩展字段
    private String employeeName;  //员工姓名
}
